import request from '@/utils/request'

// 查询装配包装运输列表
export function listTransportation(query) {
  return request({
    url: '/system/transportation/list',
    method: 'get',
    params: query
  })
}

// 查询装配包装运输详细
export function getTransportation(id) {
  return request({
    url: '/system/transportation/' + id,
    method: 'get'
  })
}

// 新增装配包装运输
export function addTransportation(data) {
  return request({
    url: '/system/transportation',
    method: 'post',
    data: data
  })
}

// 修改装配包装运输
export function updateTransportation(data) {
  return request({
    url: '/system/transportation',
    method: 'put',
    data: data
  })
}

// 删除装配包装运输
export function delTransportation(id) {
  return request({
    url: '/system/transportation/' + id,
    method: 'delete'
  })
}
